﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="hrViewInterviewRecords.aspx.cs" Inherits="ZX.WebApp.EHR.hrViewInterviewRecords" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
body     {    font-family: 宋体, Arial, Helvetica, sans-serif;  font-size: 12px;  color: #333333;  background-color: #FFFFFF;                    }             
select{width:99%;}   
.td_text { text-align:right; }  
.td_value  { text-align:left;}                 
textarea { width: 98%;}
.td_value2{width: 98%; }	 
.td_value3{width: 93%;}	
        </style>
        <script src="../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
        <script src="../Scripts/Public.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                var candidateId = getPar(decodeURI(location.href), "candidateId");
                var stepType = getPar(decodeURI(location.href), "stepType"); //是初选还是筛选
                var planName = getPar(decodeURI(location.href), "planName");
                var postName = getPar(decodeURI(location.href), "postName");
                var name = getPar(decodeURI(location.href), "name");
                var idCard = getPar(decodeURI(location.href), "idCard");
                $("#planName").val(planName);
                $("#postName").val(postName);
                $("#name").val(name);
                $("#idcard").val(idCard);

                var url = "../Extend/AjaxData/jsonlist.aspx?entity=V_hrCandidatePrimariesSelection&condition=CandidateID='" + candidateId + "'";
                if (stepType == "1") {//招聘初选  
                    $("#divFilterSelect").hide();
                }
                else {
                    $("#divFilterSelect").show();
                }
                $.get(url, function (d, s) {
                    var list = eval("(" + d + ")");
                    if (list.total > 0) {
                        for (var o in list.rows) {
                            var stepWay = list.rows[o].StepWay;
                            var stepDate = list.rows[o].StepDate;
                            var stepContent = list.rows[o].StepContent;
                            var stepComment = list.rows[o].StepComment;
                            var stepResult = list.rows[o].StepResult;
                            var stepAuditMen = list.rows[o].StepAuditMen;
                            if (typeof (stepWay) != "undefined") {
                                var table = "<table width='500px'><tbody><tr><td class='td_text'>初选步骤：</td><td class='td_value'><input class='td_value3' readonly='readonly' style='background-color: whitesmoke' type='text' value='PrimaryWay'/></td><td class='td_text'>初选日期：</td><td class='td_value'><input class='td_value3' readonly='readonly' style='background-color: whitesmoke' type='text' value='PrimaryDate'/></td></tr><tr><td class='td_text'>初选内容：</td><td class='td_value' colspan='3'><textarea cols='30' name='StepContent' rows='4' readonly='readonly' style='background-color: whitesmoke;'>PrimaryContent</textarea></td></tr><tr><td class='td_text'>初选意见：</td><td class='td_value' colspan='3'><textarea cols='30' rows='4' readonly='readonly' style='background-color: whitesmoke;'>PrimaryComment</textarea></td></tr><tr><td class='td_text'>初选结果：</td><td class='td_value'><input readonly='readonly' style='background-color: whitesmoke; width: 150px' type='text' value='PrimaryResult'/></td><td class='td_text'>考核人：</td><td class='td_value'><input readonly='readonly' style='background-color: whitesmoke; width: 150px' type='text' value='PrimaryAuditMan'/></td></tr></tbody></table>";
                                table = table.replace("PrimaryWay", stepWay);
                                table = table.replace("PrimaryDate", stepDate);
                                table = table.replace("PrimaryContent", stepContent);
                                table = table.replace("PrimaryComment", stepComment);
                                table = table.replace("PrimaryResult", stepResult);
                                if (stepAuditMen != undefined) {
                                    table = table.replace("PrimaryAuditMan", stepAuditMen);
                                }
                                else {
                                    table = table.replace("PrimaryAuditMan", "");
                                }
                                $("#divPrimarySelect").append(table);
                            }
                        }
                    }
                });
                if (stepType == "2") {//招聘筛选
                    url = "../Extend/AjaxData/jsonlist.aspx?entity=V_hrCandidateFilterSelection&condition=CandidateID='" + candidateId + "'";
                    $.get(url, function (d, s) {
                        var list = eval("(" + d + ")");
                        if (list.total > 0) {
                            for (var o in list.rows) {
                                var stepWay = list.rows[o].StepWay;
                                var stepDate = list.rows[o].StepDate;
                                var stepContent = list.rows[o].StepContent;
                                var stepComment = list.rows[o].StepComment;
                                var stepResult = list.rows[o].StepResult;
                                var stepAuditMen = list.rows[o].StepAuditMen;
                                if (typeof (stepWay) != "undefined") {
                                    var table = "<table width='500px'><tbody><tr><td class='td_text'>筛选步骤：</td><td class='td_value'><input class='td_value3' readonly='readonly' style='background-color: whitesmoke' type='text' value='FilterWay'/></td><td class='td_text'>筛选日期：</td><td class='td_value'><input class='td_value3' readonly='readonly' style='background-color: whitesmoke' type='text' value='FilterDate'/></td></tr><tr><td class='td_text'>筛选内容：</td><td class='td_value' colspan='3'><textarea cols='30' rows='4' readonly='readonly' style='background-color: whitesmoke'>FilterContent</textarea></td></tr><tr><td class='td_text'>筛选意见：</td><td class='td_value' colspan='3'><textarea cols='30' rows='4'  readonly='readonly' style='background-color: whitesmoke'>FilterComment</textarea></td></tr><tr><td class='td_text'>筛选结果：</td><td class='td_value'><input readonly='readonly' style='background-color: whitesmoke; width: 150px' type='text' value='FilterResult'/></td><td class='td_text'>考核人：</td><td class='td_value'><input readonly='readonly' style='background-color: whitesmoke; width: 150px' type='text' value='FilterAuditMan'/></td></tr></tbody></table>";
                                    table = table.replace("FilterWay", stepWay);
                                    table = table.replace("FilterDate", stepDate);
                                    table = table.replace("FilterContent", stepContent);
                                    table = table.replace("FilterComment", stepComment);
                                    table = table.replace("FilterResult", stepResult);
                                    if (stepAuditMen != undefined) {
                                        table = table.replace("FilterAuditMan", stepAuditMen);
                                    }
                                    else {
                                        table = table.replace("FilterAuditMan", "");
                                    }
                                    $("#divFilterSelect").append(table);
                                }
                            }
                        }
                    });
                }
            });
        </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divBasicInfo">
	<table width="500px">
		<tbody>
           <tr>
				<td class="td_value" colspan="4">
					<span style="color: #ff0000; font-size: large;">应聘人基本信息:</span></td>
			</tr>
			<tr>
				<td class="td_text">
					计划名称：</td>
				<td calss="td_value" colspan="3">
					<input class="td_value2" id="planName" readonly="readonly" style="background-color: whitesmoke" type="text"/></td>
			</tr>
			<tr>
				<td class="td_text">
					招聘岗位：</td>
				<td class="td_value" colspan="3">
					<input class="td_value2" id="postName" readonly="readonly" style="background-color: whitesmoke" type="text"/></td>
			</tr>
			<tr>
				<td class="td_text">
					应聘人姓名：</td>
				<td class="td_value">
					<input readonly="readonly" id="name" style="background-color: whitesmoke;" type="text"/></td>
				<td class="td_text">
					应聘人身份证：</td>
				<td class="td_value">
					<input readonly="readonly" id="idcard" style="background-color: whitesmoke;" type="text"/></td>
			</tr>
		</tbody>
	</table>
</div>
<div id="divPrimarySelect">
	<table width="500px">
		<tbody>
			<tr>
				<td class="td_text" colspan="2">
					&nbsp;</td>
			</tr>
            <tr>
				<td class="td_value" colspan="2">
					<span style="color: #ff0000; font-size: large;">招聘初选记录:</span></td>
			</tr>
		</tbody>
	</table>
    <%--<table width="500px">
		<tbody>
			<tr>
				<td class="td_text">
					初选步骤：
				</td>
				<td class="td_value">
					<input class="td_value3" readonly="readonly" style="background-color: whitesmoke" type="text" value="PrimaryWay"/></td>
				<td class="td_text">
					初选日期：
				</td>
				<td class="td_value">
					<input class="td_value3" readonly="readonly" style="background-color: whitesmoke" type="text" value="PrimaryDate"/></td>
			</tr>
			<tr>
				<td class="td_text">
					初选内容：
				</td>
				<td class="td_value" colspan="3">
					<textarea cols="30" name="StepContent" rows="4" readonly="readonly" style="background-color: whitesmoke;">PrimaryContent</textarea></td>
			</tr>
			<tr>
				<td class="td_text">
					初选意见：
				</td>
				<td class="td_value" colspan="3">
					<textarea cols="30" rows="4" readonly="readonly" style="background-color: whitesmoke;">PrimaryComment</textarea></td>
			</tr>
			<tr>
				<td class="td_text">
					初选结果：
				</td>
				<td class="td_value">
					<input readonly="readonly" style="background-color: whitesmoke; width: 150px" type="text" value="PrimaryResult"/></td>
				<td class="td_text">
					考核人：</td>
				<td class="td_value">
					<input readonly="readonly" style="background-color: whitesmoke; width: 150px" type="text" value="PrimaryAuditMan"/></td>
			</tr>
		</tbody>
	</table>--%>
</div>

<div id="divFilterSelect">
    <table width="500px">
		<tbody>
			<tr>
				<td class="td_text" colspan="2">
					&nbsp;</td>
			</tr>
            <tr>
				<td class="td_value" colspan="2">
					<span style="color: #ff0000; font-size: large;">招聘筛选记录:</span></td>
			</tr>
		</tbody>
	</table>
	<%--<table width="500px">
		<tbody>
			<tr>
				<td class="td_text">
					筛选步骤：
				</td>
				<td class="td_value">
					<input class="td_value3" readonly="readonly" style="background-color: whitesmoke" type="text" value="FilterWay"/></td>
				<td class="td_text">
					筛选日期：
				</td>
				<td class="td_value">
					<input class="td_value3" readonly="readonly" style="background-color: whitesmoke" type="text" value="FilterDate"/></td>
			</tr>
			<tr>
				<td class="td_text">
					筛选内容：
				</td>
				<td class="td_value" colspan="3">
					<textarea cols="30" rows="4" readonly="readonly" style="background-color: whitesmoke">FilterContent</textarea></td>
			</tr>
			<tr>
				<td class="td_text">
					筛选意见：
				</td>
				<td class="td_value" colspan="3">
					<textarea cols="30" rows="4"  readonly="readonly" style="background-color: whitesmoke">FilterComment</textarea></td>
			</tr>
			<tr>
				<td class="td_text">
					筛选结果：
				</td>
				<td class="td_value">
					<input readonly="readonly" style="background-color: whitesmoke; width: 150px" type="text" value="FilterResult"/></td>
				<td class="td_text">
					考核人：</td>
				<td class="td_value">
					<input readonly="readonly" style="background-color: whitesmoke; width: 150px" type="text" value="FilterAuditMan"/></td>
			</tr>
		</tbody>
	</table>--%>
</div>
    </form>
</body>
</html>
